using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework.Media;
using Perovich.GameObjects;
using Perovich.GameObjects.Components.TwoDimensional;
using Perovich.GameObjects.Components.ThreeDimensional;

namespace ThreeDExampleProject
{
    public class FuelCell : InteractiveObject3D
    {
        private bool _retrieved;
        private string _modelName;
        


        public string ModelName
        {
            get { return _modelName; }
            set { _modelName = value; }
        }

        public bool Retrieved
        {
            get
            {
                return _retrieved;
            }
            set
            {
                _retrieved = value;
                Active = !value;
            }
        }

        public FuelCell(Perovich.GameObjects.Interfaces.ICanHoldComponents game)
            : base(game)
        {
            Retrieved = false;
            BoundingSphereScale = 0.5f;
            BoundingSphereOffset = new Vector3(0, 1, 0);
        }


        public void LoadContent(ContentManager content, string modelName)
        {
            ObjectModel = content.Load<Model>(modelName);
            _modelName = modelName;
        }
    }
}
